package com.appspot.zarm.game;

public class Player {

	private String id;
	private PlayerType playerType;
	
	public Player(String id, PlayerType playerType) {
		super();
		this.id = id;
		this.playerType = playerType;
	}
	
	public String getId() {
		return id;
	}
	
	public PlayerType getPlayerType() {
		return playerType;
	}
	
	public boolean equals(Object another){
		Player anotherPlayer = (Player) another;
		return id.equals( anotherPlayer.getId() );
	}
	
	public int hashCode(){
		return id.hashCode(); 
	}
}
